Desk = {
	init : function(){
		if(!Jes.getUserSess()) return;
		Jes.query("task_query_sql",{isLoad:false},function(data){
			var html = [],len=data.length,flow,url;
			if(len>0) Jes.show('task');
			for(var i=0;i<len;i++){
				flow=data[i].flownode;
				if(flow=='5') url='opporflow_comp.html';
				else url='opporflow.html';
				html.push('◎&nbsp;<a href="'+url+'?flow='+flow+'">您有'+data[i].num+'项【'+data[i].title+'】任务</a></br>');
			}
			Jes.html("task_info",html);
		});
		Jes.sync(function(){
			Jes.page('oppor_query_sql',{param:{'ismy':1},pageSize:5});
			if(Jes.html('tb_query1').indexOf('none')==-1)Jes.show('task2');
		});
		Jes.html('more','<a href="myoppor.html">more</a>');
	}
}